﻿@*@using Resources*@
@using InnoWeb.CEND.UI.MVC.App_GlobalResources
@using InnoWeb.CEND.UI.MVC.Code52.i18n
@using InnoWeb.CEND.Core.Model.iThink
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>CEND</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="~/Scripts/jquery-ui-1.9.2.min.js"></script>
    <script src="~/Scripts/jquery-ui-1.9.2.js"></script>
    <script src="~/Scripts/jquery-ui.js"></script>
    <script src="~/Scripts/Base/skynet.js"></script>

    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.js"
        type="text/javascript"></script>
    <script src="~/Scripts/jquery.easing.1.3.js" type="text/javascript"></script>
    @*<script src="@Url.Content("~/Scripts/globalize.js")" type="text/javascript"></script>*@
    @Styles.Render("~/Content/cssNew")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/siteJS")
    <link href="@Url.Content("~/Content/Code52.i18n/Code52.i18n.css")" rel="stylesheet" type="text/css" />

    <script>
        // Load the SDK Asynchronously
        (function (d) {
            var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
            if (d.getElementById(id)) { return; }
            js = d.createElement('script'); js.id = id; js.async = true;
            js.src = "//connect.facebook.net/tr_TR/all.js";
            ref.parentNode.insertBefore(js, ref);
        }(document));

        //(function (d, s, id) {
        //    var js, fjs = d.getElementsByTagName(s)[0];
        //    if (d.getElementById(id)) return;
        //    js = d.createElement(s); js.id = id;
        //    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=544901022200081";
        //    fjs.parentNode.insertBefore(js, fjs);
        //}(document, 'script', 'facebook-jssdk'));
        !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = "//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } }(document, "script", "twitter-wjs");
    </script>
    @*@(Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.css").Add("telerik.black.css").Combined(true).Compress(true)))*@

</head>
<body>
    @{
        string cultureName = null;
        var cultureCookie = Request.Cookies["_culture"];
        if (Request.UserLanguages != null)
        { cultureName = cultureCookie != null ? cultureCookie.Value : Request.UserLanguages[0]; }
        cultureName = CultureHelper.GetImplementedCulture(cultureName); // This is safe
    }
    <div id="Header" class="ortala">
        <div class="Logo">
            <a href="@Url.Action("Index")">
                <img src="~/Images/Base/Logo.png" alt="Logo" />
            </a>
        </div>
        <div class="Menu">
            @*@if (cultureName == "en-GB")
            {
                <ul>
                    <li class="level1"><a href="@Url.Action("Index")">HOME</a>
                    </li>
                    <li class="level1"><a href="@Url.Action("About")">ABOUT</a>
                    </li>
                    <li class="level1"><a href="@Url.Action("Experts")">EXPERTS</a>
                    </li>
                    <li class="level1"><a href="#">iTHINK</a>
                        <ul class="AltMenu">
                            <li><a href="@Url.Action("Reports", new { page = 1 })">PUBLICATIONS AND REPORT</a></li>
                            <li><a href="@Url.Action("Blog")">BLOG</a></li>
                        </ul>

                    </li>
                    <li class="level1"><a href="@Url.Action("Projects", new { page = 1 })">PROJECTS AND
                        CLIENTS</a>
                    </li>
                    <li class="level1"><a href="@Url.Action("News", new { page = 1 })">NEWS</a>
                    </li>
                    <li class="level1 Sagtemizle"><a href="@Url.Action("Contact")">CONTACT</a>
                    </li>
                </ul>
            }
            else
            {
                <ul>
                    <li class="level1"><a href="@Url.Action("Index")">ANA SAYFA</a>
                    </li>
                    <li class="level1"><a href="@Url.Action("About")">HAKKIMIZDA</a>
                    </li>
                    <li class="level1"><a href="@Url.Action("Experts")">UZMANLARIMIZ</a>
                    </li>
                    <li class="level1"><a href="#">iTHINK</a>
                        <ul class="AltMenu">
                            <li><a href="@Url.Action("Reports", new { page = 1 })">RAPORLAR</a></li>
                            <li><a href="/Blog.cshtml">BLOG</a></li>
                        </ul>
                    </li>
                    <li class="level1"><a href="@Url.Action("Projects", new { page = 1 })">PROJELERİMİZ
                        VE MÜŞTERİLERİMİZ</a>
                    </li>
                    <li class="level1"><a href="@Url.Action("News", new { page = 1 })">HABERLER</a>
                    </li>
                    <li class="level1 Sagtemizle"><a href="@Url.Action("Contact")">İLETİŞİM</a>
                    </li>
                </ul>
            }*@

            <ul>
                <li class="level1"><a href="@Url.Action("Index")">ANA SAYFA</a>
                </li>
                <li class="level1"><a href="@Url.Action("About")">HAKKIMIZDA</a>
                </li>
                <li class="level1"><a href="@Url.Action("Experts")">UZMANLARIMIZ</a>
                </li>
                <li class="level1"><a href="#">iTHINK</a>
                    <ul class="AltMenu">
                        <li><a href="@Url.Action("Reports", new { page = 1 })">RAPORLAR</a></li>
                        <li><a href="@Url.Action("Blog")" target="_blank">BLOG</a></li>
                    </ul>
                </li>
                <li class="level1"><a href="@Url.Action("Projects", new { page = 1 })">PROJELERİMİZ
                    VE MÜŞTERİLERİMİZ</a>
                </li>
                <li class="level1"><a href="@Url.Action("News", new { page = 1 })">HABERLER</a>
                </li>
                <li class="level1 Sagtemizle"><a href="@Url.Action("Contact")">İLETİŞİM</a>
                </li>
            </ul>
        </div>
        <div class="Search">
            @Html.TextBox("txtSearch", "")
            <input type="submit" class="SearchButton" value="" />
            @*<asp:textbox id="TextBox1" runat="server" text="search" onfocus="if(this.value=='search')this.value='';"
                onblur="if(this.value=='')this.value='search';"></asp:textbox>*@
        </div>

        @*@Html.Partial("LanguageSelection")*@

        @*<div id="placeholder-regions" style="position: absolute; left: 746px; top: 19px;
            width: 100px;">
        </div>
        <div id="i18n-options-container" style="position: absolute; left: 645px; top: -6px;">
            <div id="i18n-options">
                <a title="International" href="#" id="currentlanguage_link"><span id="currentlanguage_text">
                </span>&nbsp;<span id="expandSign">[+]</span> </a>
            </div>



            <div id="i18n-regions">
                <ul>
                    <li>Languages
                <ol>
                    <li class="lang">
                        <div class="language language_FR">
                            <a title="Türkçe" class="tr-TR" href="#">TR</a>
                        </div>
                    </li>

                    <li class="lang">
                        <div class="language language_EN">
                            <a id="langOption" title="English" class="en-GB" href="#">ENG</a>
                        </div>
                    </li>

                </ol>
                    </li>
                </ul>
            </div>
        </div>*@


        @*<div class="Diller">
            <ul>
                <li><a href="#"><span>Türkçe</span><img src="~/Images/Base/turkish.png" alt="english" width="26"
                    height="18" /></a></li>
                <li><a href="#"><span>English</span><img src="~/Images/Base/english.png" alt="english" width="26"
                    height="18" /></a></li>
            </ul>
            <img src="~/Images/Base/dillerok.png" alt="ok" class="ok" />
        </div>*@

        <div class="clr"></div>

        @*<div>
            <form action="/" method="post">
                Select Language
                <select>
                    <option value="en-US" @(Culture=="en-US"?"selected=\"select\"":"")>English</option>
                    <option value="tr-TR" @(Culture=="tr-TR"?"selected=\"select\"":"")>Türkçe</option>
                </select>
                <input type="submit" name="Lang" value="Select" />
            </form>
        </div>
        <div class="lang-picker-wrapper">
            <span class="lang-picker">
                <a class="en-US" href="javascript:void(0);">English</a>
                <a class="@(InnoWeb.CEND.Core.Framework.CultureHelper.GetNeutralCulture(Request.UserLanguages[0].ToLower()) == "tr" ? Request.UserLanguages[0].ToLower() : "en-US")" href="javascript:void(0);">
                    Türkçe</a>
            </span>
        </div>
        <div class="clr"></div>*@
    </div>

    @RenderSection("featured", required: false)
    <section class="content-wrapper main-content clear-fix">
        @RenderBody()
    </section>

    <footer>
        <div id="Footer">
            @if (cultureName == "en-GB")
            {
                <ul>
                    <li><a href="@Url.Action("Index")">Home</a></li>
                    <li><a href="@Url.Action("About")">About</a></li>
                    <li><a href="@Url.Action("Experts")">Experts</a></li>
                    <li><a href="#">Ithink</a></li>
                    <li><a href="@Url.Action("Projects", new { page = 1 })">Projects and Clients</a>
                    </li>
                    <li><a href="@Url.Action("News", new { page = 1 })">News</a></li>
                    <li><a href="@Url.Action("Contact")">Contact</a></li>
                    <li class="Sagtemizle"><a href="#" class="borderNone">Terms and Condition</a></li>

                </ul>
                <span class="CopyRight">Copyright © 2013 CEND All rights reserved</span>
                <div class="sosyalicons">
                    <a href="www.facebook.com" target="_blank" class="social24 facebook">Facebook</a>
                    <a href="www.twitter.com" target="_blank" class="social24 twitter">Twitter</a>
                    <a href="www.linkedin.com" target="_blank" class="social24 linkedin">LinkedIn</a>
                </div>
            }
            else
            {
                <ul>
                    <li><a href="@Url.Action("Index")">Ana sayfa</a></li>
                    <li><a href="@Url.Action("About")">Hakkımızda</a></li>
                    <li><a href="@Url.Action("Experts")">Uzmanlarımız</a></li>
                    <li><a href="#">Ithink</a></li>
                    <li><a href="@Url.Action("Projects", new { page = 1 })">Projelerimiz ve Müşterilerimiz</a>
                    </li>
                    <li><a href="@Url.Action("News", new { page = 1 })">Haberler</a></li>
                    <li><a href="@Url.Action("Contact")">İletişim</a></li>
                    <li class="Sagtemizle"><a href="#" class="borderNone">Kullanım Koşulları</a></li>
                </ul>
                <span class="CopyRight">Copyright © 2013 CEND Tüm hakları saklıdır.</span>
                <div class="sosyalicons">
                    <a href="www.facebook.com" target="_blank" class="social24 facebook">Facebook</a>
                    <a href="www.twitter.com" target="_blank" class="social24 twitter">Twitter</a>
                    <a href="www.linkedin.com" target="_blank" class="social24 linkedin">LinkedIn</a>
                </div>
            }


        </div>
    </footer>
    @RenderSection("scripts", required: false)
    @*@(Html.Telerik().ScriptRegistrar().Globalization(true).DefaultGroup(group => group.Combined(true).Compress(true)))*@

    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.globalize/globalize.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.cookie.js")"></script>
    <script type="text/javascript" src="@Url.Content(string.Format("~/Scripts/jquery.globalize/cultures/globalize.culture.{0}.js", CultureHelper.GetCurrentCulture()))"></script>
    @if (CultureHelper.GetCurrentNeutralCulture() != "en")
    {
        <script type="text/javascript" src="@String.Format("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/localization/messages_{0}.js", CultureHelper.GetCurrentNeutralCulture())"></script>    
    }
    <script type="text/javascript" src="@Url.Content("~/Scripts/Code52.i18n.js")"></script>
    <script type="text/javascript" src="@Url.Content("/i18n/Code52.i18n.language.js")"></script>
    <script type="text/javascript">
        Code52.Language.Init('@CultureHelper.GetCurrentCulture()');    
    </script>

</body>
</html>
